package com.website.ui
{
	import flash.display.Sprite;
	
	/**
	 * 加载进度条 
	 * @author fly
	 * 
	 */	
	public class LoadProcessBar extends Sprite
	{
		private var _processRect:Sprite;
		public function LoadProcessBar()
		{
			initView();
		}
		
		private function initView():void
		{
			_processRect = new Sprite();
			_processRect.graphics.beginFill(0x980707);
			_processRect.graphics.drawRect(0,0,800,5);
			_processRect.graphics.endFill();
			addChild(_processRect);
		}
		
		public function setProcess(total:int, current:int):void
		{
			_processRect.scaleX = current / total;
		}
	}
}